// components/face/face.js
Component({
  options: {
    multipleSlots: true // 在组件定义时的选项中启用多slot支持
  },


  properties: {
  
  },

  
  data: {
    tagboo:false,
    visible:false,
    card: [{
      img: {
        url: "/static/images/news/avatar_1.jpg"
      },
      title: {
        text: "人脸上传",
        size:48,
        color:"#000"
      },
      tag: {
        text: "1小时前"
      },
      header: {
        // bgcolor: "#F7F7F7",
        line: true
      }
    }]
  },

  methods: {
    tagbooTotrue:function(){
      var _this = this;
      _this.setData({
        tagboo:true,
        drawerboo:true,
        visible:true
      })
    },
    tagbooTofalse:function(){
      var _this = this;
      _this.setData({
        tagboo:false,
        visible:false
      })
    },
    openDrawer:function(){
      var _this = this;
      _this.setData({
        visible:true
      })
      console.log(this.data.drawerboo)
    },
    closeDrawer:function(){
      var _this = this;
      _this.setData({
        visible:false
      })
      console.log(this.data.visible)
    }
  }
})
